package com.zxw.设计模式.创建型.建造者模式.建造者模式1.a建造客户端测试;

import com.zxw.设计模式.创建型.建造者模式.建造者模式1.建造者.具体建造者.PermanentBikeBuilder;
import com.zxw.设计模式.创建型.建造者模式.建造者模式1.建造者.具体建造者.PhoenixBikeBuilder;
import com.zxw.设计模式.创建型.建造者模式.建造者模式1.指挥者.Director;

/**
 * @projectName: util-cloud
 * @package: com.zxw.设计模式.创建型.建造者模式.建造者模式1.a建造客户端测试
 * @className: BuilderClient
 * @author: zhangxuewei
 * @description: 建造客户端测试
 * @date: 2023/5/16 16:51
 * @version: 1.0
 */
public class BuilderClient {

    public static void main(String[] args) {
        Director director = new Director(new PermanentBikeBuilder());
        System.out.println(director.construct().toString());

        Director director2 = new Director(new PhoenixBikeBuilder());
        System.out.println(director2.construct().toString());
    }
}
